/*
 * Copyright 2009 Thor Hovden
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *     http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific
 * language governing permissions and limitations under the
 * License. 
 */
package example.applications;

import eviva.application.Application;
import eviva.exceptions.Showstopper;

/**
 * Start the Eviva application, with a specific eviva input
 * 
 * @author Thor Hovden
 */
public class TL1 {
	/**
	 * @param args
	 */
	public static void main(String... args) {
		String filename = "src.eviva/TL1.ev";
		Application app = null;
		try {
			app = new Application("Tasklist example", filename);
			app.start();
			System.out.println("Accessing application log");
			System.out.println(app.getMissionLog());
		} catch (Showstopper e) {
			if (app != null) {
				System.err.println("Accessing application log");
				System.err.println(app.getMissionLog());
			}
			System.err.println(e.getMessage());
		}
	}
}
